package org.sparkle.html.impl.widget;

import org.sparkle.html.api.AbstractHtmlElement;
import org.sparkle.html.api.AbstractWidget;
import org.sparkle.html.impl.basic.Ul;

public class Sortable extends AbstractWidget {

	/**
	 * 
	 */
	private static final long serialVersionUID = -336570971496281030L;
	private Ul ul;
	
	public Sortable() {
		append(getUl());
	}
	
	public Ul getUl() {
		if(ul==null)
			ul=new Ul();
		return ul;
	}
	
	@Override
	protected String getWidgetId() {
		return getUl().getId();
	}
	
	public Sortable addRow(AbstractHtmlElement el){
		getUl().addRow(el);
		return this;
	}

}
